﻿using System;
using System.Collections.Generic;

namespace HYLightingEquipmentLay
{
	internal class CurveParamPointComparer : IComparer<CurveParamPoint>
	{
		public int Compare(CurveParamPoint x, CurveParamPoint y)
		{
			if (Math.Abs(x.ParamOnCurve - y.ParamOnCurve) <= CurveParamPointComparer.dEpsilon)
			{
				return 0;
			}
			if (y.ParamOnCurve - x.ParamOnCurve > CurveParamPointComparer.dEpsilon)
			{
				return -1;
			}
			return 1;
		}

		public static double dEpsilon = 1E-06;
	}
}
